package com.um.jdy.platform.activity.entity.dto;

import com.um.springboot.starter.orm.params.PageDTO;
import com.um.springboot.starter.orm.params.PageParams;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author 邓南辉
 * 日期 2023/6/21
 * 版权所有 广州优匠科技有限公司
 */
@Data
public class StationPageDTO extends PageDTO {

    @ApiModelProperty(value = "站场名称")
    private String name;

    @ApiModelProperty("运营商id")
    protected String platformMerchantId;

    @Override
    public PageParams toPageParams() {
        PageParams pageParams = toPageParams(new String[]{"name","platformMerchantId"},
                new String[]{"s.name","s.platform_merchant_id"});
        return pageParams;
    }

}
